<h1>编辑用户</h1>

<%= error_messages_for :user %>

<% form_for(@user) do |f| %>
  <%= f.error_messages :header_message => "请修改后再尝试保存！", :message => "你提交的内容存在下面一些问题" %>
  <%= render :partial => "form", :locals => {:f => f} %> |
  <%= link_to '取消', :controller => "home", :action => "index"  %>
<% end %>

